<template>
  <div class="page-main">
    <a-row>
      <a-col span="8">
        <div class="item-box">
          <div class="item-img">
            <img :src="avatar"/>
          </div>
          <div class="item-main">
            <span>直属主管：{{ userInfos.userReportsToName }}</span>
          </div>
        </div>
      </a-col>
    </a-row>
  </div>
</template>

<script>
  import ARow from "ant-design-vue/es/grid/Row";
  import ACol from "ant-design-vue/es/grid/Col";
  import {mapGetters} from "vuex";

  export default {
    components: {ACol, ARow},
    props: {
      userInfos: {
        type: Object,
        default: {}
      }
    },
    data(){
      return {

      }
    },
    computed: {
      ...mapGetters(["nickname", "avatar"]),
    },
  }
</script>

<style scoped lang="less">
  .page-main{
    width: 100%;
    .item-box{
      width: 400px;
      display: flex;
      padding: 15px 20px;
      align-items: center;
      border: 1px solid #e8e8e8;
      .item-img{
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        img{
          width: 100%;
        }
      }
      .item-main{
        display: flex;
        flex-direction: column;
        margin-left: 30px;
      }
    }
  }
</style>
